﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ModelBindingDemo.Models;

namespace ModelBindingDemo.Controllers
{
    public class Home1Controller : Controller
    {
        //
        // GET: /Home1/

        public ActionResult Index()
        {
            return View();
        }
        [HttpPost]
        public ActionResult Edit3(IList<string> id, IList<string> name)
        {
            ViewBag.Status = id.Count + "; " + name.Count;
            return View("Index");
        }

        public ActionResult Edit4(IList<Employee1> emp1)
        {
            ViewBag.Status = emp1.Count;
            return View("Index");
       
        }

    }
}
